﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Work.Models
{
	public class DBContext : DbContext
	{

		public DBContext(DbContextOptions<DBContext> options)
		: base(options)
		{
		}
		//管理页面
		public DbSet<User> Users { get; set; }
		public DbSet<Permission> Permissions { get; set; }
		//博文页面
		public DbSet<Blog> Blogs { get; set; }
		public DbSet<BlogType> BlogTypes { get; set; }
		public DbSet<Comment> Comments { get; set; }

	}
}
